package com.purchase.ml.bean.req.mail;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author :zxm
 * @date :2021/3/6 13:42
 * @description :
 **/
@Data
@Component
@ConfigurationProperties(prefix = "mail")
public class MailProperties {

    /**
     * 发送邮件需身份认证
     */
    private Boolean isAuth = true;

    /**
     * 发送的邮件类型主机域名
     */
    private String smtpHost = "smtp.163.com";

    /**
     * 发件人账号1
     */
    private String infoMailUser = "123456@163.com";

    /**
     * 发件人账号2
     */
    private String orderMailUser = "123456@163.com";

    /**
     * 访问smtp的密码
     */
    private String mailPwd = "abcdefg";
}
